/*
package com.imooc.exception;

import com.imooc.pojo.IMoocJSONResult;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

*/
/**
 * Created by Administrator on 2018\5\21 0021.
 *//*

@RestControllerAdvice
public class IMoocAjaxExceptionHandler {

    @ExceptionHandler(value = Exception.class)
    public IMoocJSONResult defaultErrorHandler(HttpServletRequest request, Exception e) {

        e.printStackTrace();
        return IMoocJSONResult.errorException(e.getMessage());
    }
}
*/
